package com.tingyuge.base.thread.concurrent2;

/**
 * @author xiaodao
 * @version 1.0
 * @date 2021/3/14
 */
public class Cas1 {

    private int count;

    public synchronized int getCount(){
        return count;
    }

    public synchronized void increment(){
        ++this.count;
    }


}
